﻿using System.Web.Mvc;
using LogikBug.Collections;

namespace LogikBug.ModularMvc.Navigation
{
	public class MenuCollection : Hashtable<MenuType, Menu>
	{
		#region Methods

		public override string ToString()
		{
			return ToMvcHtmlString(MenuType.Main).ToHtmlString();
		}

		public virtual MvcHtmlString ToMvcHtmlString(MenuType menuType)
		{
			return this[menuType].MenuItems.ToMvcHtmlString();
		}

		#endregion
	}
}